package com.yuyz.controller;

import com.yuyz.service.ConsumerService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/demo")
@Controller
public class HelloController {

    @Autowired
    ConsumerService consumerService;

    @RequestMapping("/hello")
    public void hello() {
        consumerService.method();
    }
}
